package com.example.threadTest01;

import java.util.concurrent.Callable;

/**
 * description: MyTask <br>
 * date: 2021/2/22 09:46 <br>
 *
 * @author: ZhangYixin <br>
 * version: 1.0 <br>
 */
public class MyTask implements Callable<Object> {
    @Override
    public Object call() throws Exception {
        System.out.println("通过callable接口实现多线程，线程名称："+Thread.currentThread().getName());
        return "这里是return返回值";
    }
}
